<div class="row-fluid">
    <div class="navbar no-margin">
        <div class="navbar-inner">
            <ul class="breadcrumb">
                <i class="icon-chevron-left hide-sidebar"><a href='#' title="Hide Sidebar" rel='tooltip'>&nbsp;</a></i>
                <i class="icon-chevron-right show-sidebar" style="display:none;"><a href='#' title="Show Sidebar"
                                                                                    rel='tooltip'>&nbsp;</a></i>
                <li>
                    <a href="#/onduty">首页</a>
                </li>
                <li>
                    <a href="#/sre/config/approver_config_list/">配置列表</a>
                </li>
                <li class="active">产品主题域审批管理</li>
            </ul>
        </div>
    </div>
</div>

<div class="container-fluid">

    <div class="row">
        <div class="col-sm-12 col-md-12 main">
            <div class="col-md-6 col-md-offset-3">
                <!--                <form name="form" ng-keydown="if(event.keyCode==13) return false;" ng-submit="form.$valid&&olapConfigAdd()" novalidate>-->
                <form name="form" novalidate>

                    <div class="form-group"
                         ng-class="{'has-error':form.productDirection.$error.required,'has-success':!form.productDirection.$error.required}">
                        <label style="padding: 0 0 5px">产品方向</label>
                        <input type="text" class="form-control" name="productDirection" ng-model="vm.p.productDirection" required />
                        <span ng-show="form.productDirection.$error.required" class="help-block">产品方向</span>
                    </div>

                    <div class="form-group"
                         ng-class="{'has-error':form.productApprover.$error.required,'has-success':!form.productApprover.$error.required}">
                        <label style="padding: 0 0 5px">产品审批人</label>
                        <input type="text" class="form-control" name="productApprover" ng-model="vm.p.productApprover" required />
                        <span ng-show="form.productApprover.$error.required" class="help-block">产品审批人</span>
                    </div>

                    <div class="form-group"
                         ng-class="{'has-error':form.productApproverOa.$error.required,'has-success':!form.productApproverOa.$error.required}">
                        <label style="padding: 0 0 5px">产品审批人OA</label>
                        <input type="text" class="form-control" name="productApproverOa" ng-model="vm.p.productApproverOa" required />
                        <span ng-show="form.productApproverOa.$error.required" class="help-block">产品审批人OA</span>
                    </div>

                    <div class="form-group"
                         ng-class="{'has-error':form.topicDomain.$error.required,'has-success':!form.topicDomain.$error.required}">
                        <label style="padding: 0 0 5px">主题域</label>
                        <input type="text" class="form-control" name="topicDomain" ng-model="vm.p.topicDomain" required />
                        <span ng-show="form.topicDomain.$error.required" class="help-block">主题域</span>
                    </div>

                    <div class="form-group"
                         ng-class="{'has-error':form.topicApprover.$error.required,'has-success':!form.topicApprover.$error.required}">
                        <label style="padding: 0 0 5px">主题域审批人</label>
                        <input type="text" class="form-control" name="topicApprover" ng-model="vm.p.topicApprover" required />
                        <span ng-show="form.topicApprover.$error.required" class="help-block">主题域审批人</span>
                    </div>

                    <div class="form-group"
                         ng-class="{'has-error':form.topicApproverOa.$error.required,'has-success':!form.topicApproverOa.$error.required}">
                        <label style="padding: 0 0 5px">主题域审批人OA</label>
                        <input type="text" class="form-control" name="topicApproverOa" ng-model="vm.p.topicApproverOa" required />
                        <span ng-show="form.topicApproverOa.$error.required" class="help-block">主题域审批人OA</span>
                    </div>



                    <div class="form-group"
                         ng-class="{'has-error':form.action.$error.required,'has-success':!form.action.$error.required}">
                        <label style="padding: 0 0 5px">状态</label>
                        <select required name="action" ng-model="vm.p.action" class="form-control">
                            <option value="0">新建</option>
                            <option value="1">更新</option>
                            <option value="2">删除</option>
                        </select>
                        <span ng-show="form.action.$error.required" class="help-block">状态</span>
                    </div>

                    <div class="form-group">
                        <input class="btn btn-primary" ng-class="{'disabled':!form.$valid}" type="button" value="确定"
                               ng-click="form.$valid&&productInfoSave()" />
                        <a href="#/star/config/approver_config_list/" class="btn btn-default">返回</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<!--/.container-->
<script type="text/javascript" charset="UTF-8" src="../lib/bootstrap/js/bootstrap-tagsinput.js"></script>
<script type="text/javascript" charset="UTF-8" src="../lib/bootstrap/js/bootstrap-tagsinput-angular.js"></script>